﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlayingCards.Model.Entity
{
    /// <summary>
    ///  房间类
    /// </summary>
    [SugarTable("Room")]
    public class Room : BaseEntity
    {
        /// <summary>
        /// 房间编号
        /// </summary>
        [SugarColumn(ColumnName = "RoomNumber")] 
        public string? RoomNumber { get; set; }

        /// <summary>
        ///  创建者id 创建房间的玩家id
        /// </summary>
        [SugarColumn(ColumnName = "PlayerNumber")]
        public int PlayerNumber { get; set; }

        /// <summary>
        /// 房间名称
        /// </summary>
        [SugarColumn(ColumnName = "Name")]
        public string? Name { get; set; }

        /// <summary>
        /// 房间码
        /// </summary>
        [SugarColumn(ColumnName = "RoomCode")]
        public string? RoomCode { get; set; }

        /// <summary>
        ///  玩家列表
        /// </summary>
        [SugarColumn(ColumnName = "PlayerList")]
        public int PlayerList { get; set; }


        /// <summary>
        /// 房间状态
        /// </summary>
        [SugarColumn(ColumnName = "RoomState")]
        public int? RoomState { get; set; }

        /// <summary>
        /// 游戏时长
        /// </summary>
        [SugarColumn(ColumnName = "GameDuration")]
        public DateTime GameDuration { get; set; }
    }
}
